import {defineStore} from "pinia";
import {ref} from 'vue'

export const GoodsStore = defineStore('Goods',()=>{
    const goods = ref('')

    const setgoods = (newgoods)=>{
        goods.value = newgoods
    }

    const renew = ()=>{
        goods.value = ''
    }

    return {goods,setgoods,renew}
})